diff options
| author | Lauri Vuorela <lauri.vuorela@gmail.com> | 2024-02-05 02:16:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-04 20:16:30 -0500 |
| commit | be0964d9e1d110ff647d3d6433835786b88f9435 (patch) | |
| tree | effee8b42f21b9404a7650c68b9d11c91fa32bd8 /src/app/groups/[groupId]/reimbursement-list.tsx | |
| parent | fb49fb596a56955ca70eac9da47d2826299469e1 (diff) | |
format currency with thousand separators (#81)
Diffstat (limited to 'src/app/groups/[groupId]/reimbursement-list.tsx')
| -rw-r--r-- | src/app/groups/[groupId]/reimbursement-list.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/groups/[groupId]/reimbursement-list.tsx b/src/app/groups/[groupId]/reimbursement-list.tsx index 54ee9d7..8031aa5 100644 --- a/src/app/groups/[groupId]/reimbursement-list.tsx +++ b/src/app/groups/[groupId]/reimbursement-list.tsx @@ -1,5 +1,6 @@ import { Button } from '@/components/ui/button' import { Reimbursement } from '@/lib/balances' +import { formatCurrency } from '@/lib/utils' import { Participant } from '@prisma/client' import Link from 'next/link' @@ -42,9 +43,7 @@ export function ReimbursementList({ </Link> </Button> </div> - <div> - {currency} {(reimbursement.amount / 100).toFixed(2)} - </div> + <div>{formatCurrency(currency, reimbursement.amount)}</div> </div> ))} </div> |
